//
//  SwitchSettingCellData.h
//  18Birdies
//
//  Created by Lc on 15/4/28.
//  Copyright (c) 2015年 Lc. All rights reserved.
//

#import "LcSwitchableCellData.h"

@class SwitchSettingCellData, LcFont;

@protocol SwitchSettingDelegate<NSObject>
@required
- (void)onSwitchValueChanged:(SwitchSettingCellData*)cellData
                    switchOn:(BOOL)switchOn;
@end

@interface SwitchSettingCellData : LcSwitchableCellData

+ (SwitchSettingCellData*)cellDataWithTitle:(NSString*)title
                                titleLcFont:(LcFont*)titleLcFont
                                   delegate:(id<SwitchSettingDelegate>)delegate;

+ (SwitchSettingCellData*)cellDataWithTitle:(NSString*)title
                                   subtitle:(NSString*)subtitle
                                titleLcFont:(LcFont*)titleLcFont
                                   delegate:(id<SwitchSettingDelegate>)delegate;

+ (SwitchSettingCellData*)cellDataWithTitle:(NSString*)title
                                   subtitle:(NSString*)subtitle
                            linesOfSubtitle:(int)linesOfSubtitle
                                titleLcFont:(LcFont*)titleLcFont
                                   delegate:(id<SwitchSettingDelegate>)delegate;

@property(nonatomic, copy, readonly) NSString* title;
@property(nonatomic, copy, readonly) NSString* subtitle;
@property(nonatomic, weak) id<SwitchSettingDelegate> delegate;
@property(nonatomic, strong, readonly) LcFont* titleLcFont;

// really temp code to fix 2 lines of subtitle
@property(nonatomic, assign, readonly) int linesOfSubtitle;

@end
